import i18n from '@src/locales';
import FormSubRelationFormSetting from './FormSubRelationFormSetting.vue';
import FormSubRelationFormPreview from './FormSubRelationFormPreview.vue';
import FormSubRelationForm from './FormSubRelationForm.vue';
import FormSubRelationFormView from './FormSubRelationFormView.vue';


let FormSubRelationFormField = {
  formType: 'relationForm', // 字段类型
  name: i18n.t('common.form.type.relationForm'),
  isSystem: 0,
  forceDelete: true,
  previewIcon:'icon-fdn-guanlianbiaodan',
  subFormFieldList: () => {
    return []
  },
  isSubForm: true,
  component: {
    preview: FormSubRelationFormPreview,
    build: FormSubRelationForm,
    view: FormSubRelationFormView,
    extend: {
      'task_relationForm_setting': FormSubRelationFormSetting,
      'task_receipt_relationForm_setting': FormSubRelationFormSetting,
      'event_relationForm_setting': FormSubRelationFormSetting,
    }
  }
};

export default FormSubRelationFormField;
